package com.atguigu.gmall.pms.vo.spu;

import com.atguigu.gmall.pms.entity.AttrEntity;
import com.atguigu.gmall.pms.entity.SkuAttrValueEntity;
import com.atguigu.gmall.pms.entity.SkuEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SpuSkusAttr extends SkuEntity {
    private List<String> images;
    private List<SkuAttrValueEntity> saleAttrs;

    private BigDecimal buyBounds;
    private BigDecimal growBounds;
    private List<Integer> work;

    private Integer fullCount;
    private BigDecimal discount;
    private Integer ladderAddOther;

    private BigDecimal reducePrice;
    private BigDecimal fullPrice;
    private Integer fullAddOther;


    /*
    "name": "",   //sku名字
   "title" : "",  //sku标题
   "subtitle" :"", //sku副标题
   "weight" : 0,   //sku重量
   "price": 0,  //商品价格
   "images": ["string"], //sku图片
   "saleAttrs": [  //销售属性组合
     {
       "attrId": 0,  //属性id
       "attrValue": "string" //属性值
     }
   ],
   "buyBounds": 0,   //赠送的购物积分
   "growBounds": 0,  //赠送的成长积分
   "work": [0,1,1,0], //积分生效情况
   "fullCount": 0, //满几件
   "discount": 0,  //打几折
   "ladderAddOther": 0, //阶梯价格是否可以与其他优惠叠加
   "fullPrice": 0,  //满多少
   "reducePrice": 0,  //减多少
   "fullAddOther": 0,   //满减是否可以叠加其他优惠
     */
}
